<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" method="post">
                    <div class="widget-body">
                        <fieldset>
                            <div class="widget-head am-cf">
                                <?php //ddd($list) ?>
                                <div class="widget-title am-fl">
                                    修改设备
                                    <a href="javascript:;" style="margin-left: 20px;" onclick="history.back();">返回</a>
                                </div>
                                <input type="hidden" id="id" value="<?= $list['id'] ?>"/>
                                <input type="hidden" name="shop_name" value="<?= $list['shop_name'] ?>" required/>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">商家名称</label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" value="<?= $list['shop_name'] ?>" disabled/>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">设备名称</label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="title" placeholder="请输入" value="<?= $list['title'] ?>" required/>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">设备编号</label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="imei" placeholder="请输入" value="<?= $list['imei'] ?>" required/>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">左门名称</label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="door01_name" placeholder="请输入" value="<?= $list['door01_name'] ?>" required/>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">左门编号</label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="door01_no" placeholder="请输入" value="<?= $list['door01_no'] ?>" required/>
                                    <div style="font-size: 12px; color: #888;">(只有一个门则默认左门)</div>
                                    <input type="hidden" name="door01_id" value="<?= $list['door01_id'] ?>"/>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">右门名称</label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="door02_name" placeholder="请输入" value="<?= $list['door02_name'] ?>"/>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">右门编号</label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="door02_no" placeholder="请输入" value="<?= $list['door02_no'] ?>"/>
                                    <input type="hidden" name="door02_id" value="<?= $list['door02_id'] ?>"/>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">点击保存</button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        /**
         * 表单验证提交
         * @type {*}
         */
        $('#my-form').superForm();
    });
</script>
